package com.itheima.service.mongo.impl;

import com.itheima.domain.mongo.TaoHuaLike;
import com.itheima.service.mongo.TaoHuaLikeService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;

@DubboService
public class TaoHuaLikeServiceImpl implements TaoHuaLikeService {

    @Autowired
    MongoTemplate mongoTemplate;
    @Override
    public void save(TaoHuaLike taoHuaLike) {

        mongoTemplate.save(taoHuaLike);
    }
}
